package com.woniu.smallmedical.server;

import com.woniu.smallmedical.entity.*;
import sun.reflect.generics.tree.Tree;

import java.util.List;

/**
 * @author author
 * @create 2021-09-26-8:58
 */
public interface PermissionServer {
   List<Role> getRole();
   List<TreeMenu> getTreeMenu();
   Role getTreeMenuByRid(Integer rid);
   TreeMenu getTreeMenuByMid(Integer mid);
   TreeMenu getTreeMenuByMpid(Integer mpid);
   void updateMenuPermission(Integer rid, Integer[] mid,Integer[] pid);
   void deleteMenuPermission(Integer rid);
   void insertMenuPermission(RoleMenu roleMenu);
   List<Permission> getPermission();
   Permission getPermissionByPid(Integer pid);
   Permission getPermissionByPpid(Integer ppid);
   void deleteRolePermission(Integer rid);
   void insertRolePermissio(RolePermission rolePermission);
}
